package simple14.discount;

public class HolidayDiscount extends MultyDiscount {

    public HolidayDiscount(MultyDiscount nextMultyDiscount) {
        super(nextMultyDiscount);
    }

    @Override
    public int calculate(int money) {
        System.out.println("节假日一律优惠5元");
        money = money - 5;

        return super.calculate(money);
    }
}
